<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <div id="app">
         <!-- <button @click="fun">btn</button> -->
         {{num}}
<hr />
         {{fun()}}
         {{fun()}}
         {{fun()}}

         <hr />

         {{funTwo}}
         {{funTwo}}
         {{funTwo}}
    </div>

    <script src="js/vue.js"></script>
    <script>

       let vm= new Vue({
            el:"#app",
            data:{
                num:100
            },
            methods: {
                fun(){
                   
                   console.log("函数"+this.num)
                }
                
            },
            computed:{

                funTwo(){
                    console.log("计算属性"+this.num)
                }

            }
        })
    </script>
</body>
</html>